<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试vue1</title>
    <script type="text/javascript" src="../com.v2/vue/k1/vue.min.js"></script>
</head>
<body>
<div id="kzx1" >
    <p>{{msg}}</p>

</div>

</body>
<script>
    new Vue({
        el:"#kzx1",
        data:{
            msg:'匡振曦1'
        },
        //显示template脚本，而不是#kzx1代表的脚本，如果template:'' 则还是显示#kzx1代表的脚本
        template:'<h1>{{msg}}</h1>'

    });

</script>

</html>